package com.hmall.cart.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

//@Configuration
public class RemoteCallConfig {

    //配置类中定义一个方法注册bean
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
